package com.victor.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Entity
@Table(name = "shopuser")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Shopuser {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// 编号,

	@Column(name = "zhucedate", length = 50)
	private String zhucedate;// 注册日期,

	@Column(name = "shopname", length = 50)
	private String shopname;// 商家名称,

	@Column(name = "username", length = 50)
	private String username;// 账号,

	@Column(name = "password", length = 50)
	private String password;// 密码,

	@Column(name = "flag", length = 50)
	private String flag;// 冻结标识(0.正常，1.冻结)
	
	
	@Column(name = "sharename", length = 50)
	private String sharename;// 名称(共用)

	@Column(name = "sharelevel", length = 50)
	private String sharelevel;// 级别(共用)

	@Column(name = "shareprice", length = 50)
	private String shareprice;// 价格(共用)
	
	@Column(name = "sharelocation", length = 50)
	private String sharelocation;// 位置(共用)

	@Column(name = "sharebeizhu", length = 50)
	private String sharebeizhu;// 备注(共用)

	@Column(name = "jianjie", length = 50)
	private String jianjie;// 简介(共用)

	@Column(name = "video", length = 50)
	private String video;// 视频介绍(共用)

	@Column(name = "shopclass", length = 50)
	private String shopclass;// 类别 0宾馆,1美食,2娱乐
	
	@Transient
	private List<Shopuserphoto> shopuserphotos;//商家表包含多个商家介绍图片
	
	@Transient
	private List<ShopuserXQ> shopuserxqs;//商家表包含多个商家内容详情
	
}
